<style type="text/css">
    .task1 p{ color: red;font-size: 12px;}
    .task1 span{color:red;}
</style>
<div class="task1">
    <?php
    if ($this->session->userdata('ms_error')) {
        echo message($this->session->userdata('ms_error'), "error");
        $this->session->unset_userdata("ms_error");
    }
    echo form_open('product/addcategory', array('name' => 'frmadd', 'onsubmit' => 'return check_user()'));
    echo '<div class="form-wrapper">';
    echo '<fieldset style="margin: 0 auto;width:60%;height: auto;border: 1px #ccc solid; padding:20px 15px 20px 15px;-moz-border-radius:10px;">';
    echo '<legend align="center"><div class="heading" style="margin: 0 auto;width: 100%;height: auto;border: 0px #ccc solid;text-align: center;font-size: 20px;color:#006600;">Add new Category</div></legend>';
    echo '<div style="float: right; border: 0px #ccc solid;">';
    echo anchor('product/productmanager', img('images/user_images/cancel.png'));
    echo '</div>';
    echo '<table align="center">';

    echo '<tr>';
    echo '<td valign="top">ProductName &nbsp;<span>*<span>&nbsp;</td>';
    echo '<td>' . form_input('txt_catname') . form_error('txt_catname') . '</td>';
    echo '<tr><td>';
    echo $this->session->userdata('invalid_category');
    $this->session->unset_userdata('invalid_category');
    echo '</td></tr>';
    echo '</tr>';
    echo '<tr>';
    echo '<td valign="top">Description:</td>';
//echo '<td>'.form_textarea('txt_detail').form_error('txt_detail').'</td>';
    echo '<td> ' . form_textarea(array('name' => 'txt_detail', 'rows' => '8', 'cols' => '50')) . form_error('txt_detail') . '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td></td>';
    echo '<td>' . form_submit('btn_submit', 'Add') . form_reset('btn_reset', 'Reset') . '</td>';
    echo '</tr>';
    echo '</table>';
    echo '<p>Note : (*) must  be insert!<p>';
    echo '</fieldset>';
    echo '</div>';

    echo form_close();
    ?>
</div>